<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="item in banner" :key = "item.id">
        <img :src="item.picUrl" alt="">
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  props: {
    banner: []
  }
}
</script>

<style lang="scss" scoped>
.my-swipe .van-swipe-item {
  color: #fff;
  background-color: #39a9ed;
  width: 100%;
  height: 5.5556rem;
  img{
    width: 100%;
    height: 100%;
  }
}
</style>
